﻿CREATE TABLE [dbo].[order_paid_details] (
    [ID]     INT             IDENTITY (1, 1) NOT NULL,
    [OID]    INT             NOT NULL,
    [BankID] INT             NOT NULL,
    [Money]  DECIMAL (18, 2) NOT NULL,
    CONSTRAINT [PK__order_pa__3214EC271CF15040] PRIMARY KEY CLUSTERED ([ID] ASC),
    CONSTRAINT [FK_order_paid_details_banks] FOREIGN KEY ([BankID]) REFERENCES [dbo].[banks] ([ID]),
    CONSTRAINT [FK_order_paid_details_order_paid] FOREIGN KEY ([OID]) REFERENCES [dbo].[order_paid] ([ID]) ON DELETE CASCADE
);



